<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="table-responsive">
<table class="cntable table table-bordered dataTable table-tomeasure ">
	<thead>
		<tr>
		    <th style="width: 100px">主键</th>
		    <th style="width: 100px">创建时间</th>
		    <th style="width: 100px">任务号</th>
		    <th style="width: 100px">评分参数</th>
		    <th style="width: 100px">车牌号</th>
			<th style="width: 100px">客户姓名</th>
			<th style="width: 100px">客户身份</th>
			<th style="width: 100px">电话</th>
			<th style="width: 100px">品牌名称</th>
			<th style="width: 100px">出单地区</th>
			<th style="width: 100px">车型</th>
			<th style="width: 100px">商业险</th>
			<th style="width: 100px">交强险</th>
			<th style="width: 100px">车船税</th>
			<th style="width: 100px">总金额</th>
			<th style="width: 100px">投保奖励</th>
			<th style="width: 100px">阅读状态</th>
			<th style="width: 100px">确认操作</th>
			<th style="width: 100px">确认状态</th>
		</tr>
	</thead>
	 <tbody>
		<c:forEach var="tomeasure" items="${tomeasures}" varStatus="status">
		<tr data-id="${tomeasure.id}">
			<td>${status.index+1}</td>
			
			<td><fmt:formatDate value="${tomeasure.createTime}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
			<td>${tomeasure.taskId}</td>
			<td>${tomeasure.scoreRate}</td>
			<td>${tomeasure.carLicenseNo}</td>
			<td>${tomeasure.name}</td>
			<td>
				<t:provider packageName="cust" enumClassName="CustomerLevel" value="${tomeasure.level}" /> 
			</td>
			<td>${tomeasure.phone}</td>
			<td>${tomeasure.insuName}</td>
			<td>${tomeasure.insuPlace}</td>	
			<td>
				<t:provider packageName="insu" enumClassName="FanhuaCarProperty" value="${tomeasure.carProperty}" /> 
			</td>	
			<td>${tomeasure.businessMoney}</td>
			<td>${tomeasure.efcInsureMoney}</td>
			<td>${tomeasure.taxMoney}</td>
			<td>${tomeasure.totalMoney}</td>
			<td>${tomeasure.reward}</td>
			<td>
				<t:provider packageName="tp" enumClassName="ComState" value="${tomeasure.comState}" />  
			</td>
			<td>
				<c:if test="${tomeasure.confirmState eq 'unConfirm'}">
					<ul class="icons-list">
						<li><a href="javascript:onConfirm('${tomeasure.id}')" title="点击确认"><i class="icon-checkmark-circle2 text-primary"></i></a></li>
					</ul>
				</c:if>
			</td>
			<td>
				<c:if test="${tomeasure.confirmState eq 'unConfirm'}">待确认</c:if>
				<c:if test="${tomeasure.confirmState eq 'confirmed'}">已确认</c:if>
				</td>
		</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos"><%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
</div>